import Vue from 'vue'
import router from './router/router'
import store from './store'
import { Message,Input } from "element-ui";
import VueCookie from 'vue-cookie'
import VueLazyload from "vue-lazyload";
import App from './App.vue'

import './permission'
import './until/requestAxios'
const mock = false;
if(mock){
  require('./mock/api')
}
Vue.prototype.$message = Message//添加的vue的实例上this可以调用
Vue.use(VueCookie)
Vue.use(Input)
Vue.use(VueLazyload,{
  loading:'/imgs/loading-svg/loading-bars.svg',
  error:'/imgs/loading-svg/loading-balls.svg'
})
Vue.config.productionTip = false//设置为ture切换至生产环境，会出现一些vue以一些提示
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
